import Vue from "vue";
import App from "./App.vue";
import Toast from "vue-toastification";
import "vue-toastification/dist/index.css";
import router from "./router";
import store from "./store";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import aMap from 'vue-amap'
import jsCookie from 'js-cookie'
Vue.prototype.$cookie = jsCookie
Vue.use(aMap)
aMap.initAMapApiLoader({
  key: '393d403852c747809f8477642827545a',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch','AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.Geolocation','AMap.Geocoder', 'AMap.AMapManager', 'AMap.Marker'],//应用功能项
  v: '1.4.4',
  uiVersion: '1.0'
})
window._AMapSecurityConfig = {
	securityJsCode:'a7e6e8eb2a4695c419a1be5fadd3d051',
}
Vue.use(Toast, {
  transition: "Vue-Toastification__bounce",
  maxToasts: 20,
  newestOnTop: true
});
Vue.config.productionTip = false;
Vue.use(ElementUI);
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
